<?php

namespace app\models;

/**
 * This is the model class for table "cti_zuoxi".
 */
class CrmConfig extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     *  * This is the model class for table "crm_config".
     *
     */
    public static function tableName()
    {
        return 'crm_config';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id','code_type','code_id','valid','flag'], 'integer'],
            [['name','indicate','type'], 'string', 'max' => 40],
            [['params'], 'string', 'max' => 0],
            [['id','name','indicate'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'Params'=>'参数',
            'indicate'=>'说明',
            'name'=>'名称',
        ];
    }
}
